import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * Created with IntelliJ IDEA.
 * User: ttq
 * Date: 13-8-8
 * Time: 上午9:09
 * To change this template use File | Settings | File Templates.
 */
public class MethodAfterInterceptor implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        //To change body of implemented methods use File | Settings | File Templates.
        System.out.println("方法" + method.getName() + "运行完毕，返回值为：" + o);
    }
}
